Technical Q&As
QTW 50 - Painting Over a QuickTime Movie (1-Aug-95)
Q I am trying to draw graphics and/or text (WM_PAINT stuff) on top of playing
movies in a QuickTime window. However, when I try to put stuff in the WM_PAINT
procedure of the window containing the movies, the text and graphics appear on
the screen between the two movies, but none actually appear on top of the
movies. I tried experimenting with overlaying transparent (background = NULL)
child windows on top of the movie windows. (The CLIPCHILDREN and other obvious
conflicting window styles in the movie procedure were taken out beforehand).
Later on, in another experiment, the window showed up on top of the movie, but
as soon as the movie started playing, it covered over the window, i.e., you saw
it flash onto the screen for a second.
A Put CLIPCHILDREN back into the window styles for the window that contains your
movie. When this style is specified, QTW will honor child windows and their
contents by not painting over them. You were correct in painting text into a
child window. The background should probably be solid, however, since an
invisible background will be frozen to what was there when the window was first
updated.
Technical Q&As
Previous Question | Contents | Next Question